<div bsModal #actionModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="actionModal" aria-hidden="true"
  [config]="{backdrop: 'static'}">
  <div class="modal-dialog">
    <div class="modal-content">
      <form *ngIf="active" #editForm="ngForm" novalidate (ngSubmit)="save()">

        <div class="modal-header">
          <h4 class="modal-title">
            <span>设置预警时间</span>
          </h4>
          <button type="button" class="close" (click)="close()" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>

        <div class="modal-body">
          <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <label>预警时间
              <span class="text-danger">*</span>
            </label>
            <p-calendar [inputStyle]="{'width':'326px'}" [(ngModel)]="warningDate" name="warningDate" dateFormat="yy-mm-dd" [showIcon]="true"></p-calendar>
            <!-- <input #warningDatePicker name="warningDatePicker" class="form-control" [ngClass]="{'edited': warningDate}" [ngModel]="warningDate?(warningDate | momentFormat:'YYYY年M月D日'): ''" > -->
          </div>

        </div>

        <div class="modal-footer">
          <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">{{l("Cancel")}}</button>
          <button type="submit" class="btn btn-primary blue">
            <i class="fa fa-check-circle"></i>
            <span>确定</span>
          </button>
        </div>

      </form>

    </div>
  </div>
</div>
